package com.zenithsun.pic.picreview.dao;


import java.util.HashMap;
import java.util.List;

import com.syzg.common.dao.BaseDAO;
import com.zenithsun.common.review.model.Review;
import com.zenithsun.pic.picreview.model.PicReview;

public interface PicReviewDAO extends BaseDAO<PicReview> {
	
	public Review getReviewByBus(String busId, String busMark) throws Exception ;
	/**
	 * 分页查询
	 * @param pageNo 页码
	 * @param limit  页行数
	 * @param searchCondition 查找参数
	 * @return
	 * @throws Exception
	 */
	public List<HashMap<String, String>> listPicReview(int pageNo, int limit, PicReview searchCondition) throws Exception;
	/**
	 * 根据条件查询数量
	 * @param searchCondition 查找参数
	 * @return int 
	 * @throws Exception
	 */
	public int countPicReview(PicReview searchCondition) throws Exception;
	
	public HashMap<String, String> findPicReview(String id) throws Exception;
	

}
